package com.zy.controller;

import com.zy.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ab804 on 2015/9/24 0024.
 */
@RestController
public class DemoController {
    @Autowired
    private DemoService demoService;

    @RequestMapping("/demo.do")
    public String demo() {

        String result = demoService.say("world");
        return result;

    }


}
